package com.tao.content.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tao.content.domain.pojo.CourseCategory;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class CourseCategoryDto  implements Serializable {
    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "分类标签默认和名称一样")
    private String label;

    @Schema(description = "父结点id（第一级的父节点是0，自关联字段id）")
    private String parentid;

    @Schema(description = "是否显示")
    private Integer isShow;

    @Schema(description = "排序字段")
    private Integer orderby;

    @Schema(description = "是否叶子")
    private Integer isLeaf;

    @Schema(description = "孩子节点")
    private List<CourseCategoryDto> childrenNodes;
}
